export interface CascaderOptionsData {
    className?: string;
    showTitle?: boolean;
    disabled?: boolean;
    children?: CascaderOptionsData[];
    label: string;
    value: string | number;
}

export interface CascaderOptions {
    placeholder?: string;
    showClear?: boolean;
    mode?: "single" | "multiple";
    data: CascaderOptionsData[];
    displayRender?: (value: any[]) => string;
    defaultValue?: any[];
    onChange?: (value: any[], labelValue: any[], indexValue: any[]) => void;
    // 搜索相关配置
    showSearch?: boolean;
    searchPlaceholder?: string;
    searchDebounceTime?: number;
    searchFn?: (data: CascaderOptionsData, keyword: string) => boolean;
}